package com.endbd.warehouse.controller;

import com.endbd.feignapi.model.warehouse.KcWarehouse;
import com.endbd.feignapi.util.PageModel;
import com.endbd.warehouse.model.KCCondition;
import com.endbd.warehouse.service.IManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/warehouse")
public class KCWarehouseAction {
    @Autowired
    private IManageService manageService;
    public IManageService getManageService() {
        return manageService;
    }
    public void setManageService(IManageService manageService) {
        this.manageService = manageService;
    }

    @RequestMapping("/manage")
    public PageModel<KcWarehouse> queryManage(KCCondition kcc,PageModel<KcWarehouse> pageModel){
        return manageService.querymanages(kcc,pageModel);
    }
}
